package com.woniuxy.demo.mapper;

import com.woniuxy.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 佘赛飞
 * @create 2021 -10 -12 7:12 PM
 */
public interface UserMapper {
    //根据姓名查询
    User selectUserByName(String username);
    //分页查询
    List<User>selectUsers(@Param("user") User user,
                          @Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize);
    //统计总条数
    int selectUserCount(@Param("user") User user);
    //更新
    void updateUser(User user);
    //新增用户
    void insertUser(User usr);
    //删除
    void deleteUser(int uid);
}
